package com.googlecode.dgwt.client.dojo.util;

import java.io.Serializable;
import java.util.Map;

/**
 * An native implementation of {@link Map} with predictable iteration order to
 * increase the framework performance. <br/>
 * This type of Map has the same characteristics of {@link java.util.LinkedHashMap LinkedHashMap}. <br/>
 * Except that it's keys can only be of type {@link String}.
 * 
 * @author wellsantos@wellsantos.com
 * @since 0.01
 */
public class StringMap<V> extends StringMapBase<String,V> implements Serializable {
    
    private static final long serialVersionUID = 1L;

    public StringMap() {
        super();
    }

    public StringMap(int count) {
        super(count);
    }

    public StringMap(Map<String, V> src) {
        super(src);
    }

    @Override
    protected String getNativeKey(Object key) {
        return key == null ? null : key.toString();
    }

}
